#ifndef MY_LISTVIEW_H
#define MY_LISTVIEW_H

#include <qlistview.h>
#include <qpixmap.h>

class QPainter;
class MyListViewItem;
class MyWidget;

class MyListView
	: public QListView
{
	Q_OBJECT

public:
	MyListView(QWidget * parent = 0);
	~MyListView();

	bool hoverPhone;
	QPixmap pixmapPhoneNormal;
	QPixmap pixmapPhoneSelected;
	QPixmap pixmapPhoneHover;
	QPixmap pixmapStatusAvailable;
	QPixmap pixmapStatusUnavailable;
	QPixmap pixmapAvatar;

	bool m_bShowPicture;
	bool m_bSortByName;

	MyWidget * myWidget;


protected:
	void leaveEvent(QEvent *);

private:
    bool eventFilter(QObject *, QEvent *);
};


#endif //MY_LISTVIEW_H
